Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log4j2 JsonLayout support #1559

Merged
merged 15 commits into from
Oct 31, 2023
Merged

Log4j2 JsonLayout support #1559

merged 15 commits into from
Oct 31, 2023

Conversation

jasonjkeller
Copy link
Contributor

@jasonjkeller jasonjkeller commented Oct 20, 2023

This is a followup to a previous PR that was reverted to address verifier failures: #1545

This PR re-introduces the Log4j2 JsonLayout support but splits Log4j2 instrumentation across two modules.

apache-log4j-2.6 is a new instrumentation modules for older versions of Log4j2 (versions 2.6 - 2.10.0). It's simply a copy of the apache-log4j-2 (versions 2.11.0+) module but with a few tweaks required to avoid verifier failures with those older versions.

@codecov-commenter
Copy link

codecov-commenter commented Oct 20, 2023

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 70.61%. Comparing base (7435d77) to head (02f5527).
Report is 1229 commits behind head on main.

Files with missing lines Patch % Lines
...newrelic/agent/bridge/logging/AppLoggingUtils.java 33.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1559      +/-   ##
============================================
+ Coverage     70.60%   70.61%   +0.01%     
- Complexity     9794     9799       +5     
============================================
  Files           817      817              
  Lines         39489    39501      +12     
  Branches       5995     5999       +4     
============================================
+ Hits          27880    27894      +14     
+ Misses         8902     8900       -2     
  Partials       2707     2707              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@meiao meiao self-requested a review October 23, 2023 16:42
@jasonjkeller jasonjkeller merged commit 17309cb into main Oct 31, 2023
102 checks passed
@jasonjkeller jasonjkeller deleted the NR-155391-json-layout-support branch October 31, 2023 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants